<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="https://code.google.com/p/rad-framework/taglib"
	xmlns:tt="https://code.google.com/p/rad-framework"
	xmlns:s="http://jboss.com/products/seam/taglib" template="/themes/default/entity-template.xhtml">
	
	<ui:define name="center">
		<rich:tabPanel switchType="ajax" id="tabPanel" headerAlignment="left">

			<ui:insert name="task">
				<c:if test="#{isBpmTask}">
					<rich:tab id="taskTP" name="TaskTab" label="#{messages['Task']} - #{currentTask.name}">
						<ui:include src="/themes/default/includes/task-panel.xhtml" />
					</rich:tab>
				</c:if>
			</ui:insert>
	
			<rich:tab id="mainTP" name="MainTab"
				label="#{tree.current.entityTypeText}">
					<ui:insert name="main"/>
			</rich:tab>
				
			<ui:insert name="siblings">
				<rich:tab id="#{currentTree.parent.id}SibTP" name="Siblings"
					rendered="#{currentTree.parent.renderSiblings and currentTree.editor.managed}"
					label="#{messages['Siblings']}">

					<ui:include
						src="/themes/default/includes/folder-table.xhtml">
						<ui:param name="id" value="siblings"/>
						<ui:param name="folder" value="#{currentTree.parent}"/>
						<ui:param name="renderDelete" value="false"/>
					</ui:include>
				</rich:tab>
			</ui:insert>
				
			<ui:insert name="folders"/>
			
		</rich:tabPanel>
	</ui:define>
</ui:composition>